package cn.linran.org.mapper;

import cn.linran.org.domain.Department;
import cn.linran.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    List<Department> loadAll();
    Department selectById(Long id);
    void save(Department department);
    void remove(Long id);
    void update(Department department);
    Integer queryCount(DepartmentQuery departmentQuery);//查询总条数
    List<Department> queryData(DepartmentQuery departmentQuery);//查询当前页数据
}
